package com.xmsit.controller;

import com.xmsit.mapper.AdsAlarmStatLastMonthMapper;
import com.xmsit.pojo.CarInfo;
import com.xmsit.service.CarInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/car")
public class CarController {

    @Autowired
    private CarInfoService carInfoService;

    /**
     * 车辆信息
     * @param carInfo
     * @return
     */
    @PostMapping("/getCarList")
    public List<CarInfo> getCarList(@RequestBody CarInfo carInfo){
        return carInfoService.getCarList(carInfo);
    }




}
